import moment from 'moment'

export const formatTime = (time) => {
  return time ? moment(time).format('YYYY-MM-DD HH:mm:ss') : ''
}

export const formatDate = (time) => {
  return time ? moment(time).format('YYYY-MM-DD') : ''
}